package com.cacche.thread;

import java.util.ArrayList;


/**
 * @Title: WorkTask.java
 * @Package thread
 * @Description: TODO(添加描述)
 * @author 刘章
 * @date 2013-7-2 下午2:41:32
 */
public class WorkTask
        extends
        ThreadTask
{
	private int    contact_id;
	private String account;
	
	public WorkTask(int contact_id, String account) {
		super();
		this.contact_id = contact_id;
		this.account = account;
		this.setTaskId(contact_id+"-"+account);
	}
	
	@Override
	public ThreadTask[] TaskCore() {
		ArrayList<WorkTask> list = new ArrayList<WorkTask>();
		try
		{
			
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		return list.toArray(new WorkTask[0]);
	}
	
	@Override
	protected boolean needExecuteImmediate() {
		return true;
	}
	
	@Override
	public void log(int index) {
		
	}
	
}
